﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Map.News
{
    using DB_NH.DB_Model.News;

    public class News_Map : EntityMapping<News>
    {
        public News_Map()
        {
            Property(x => x.content, map =>
            {
                map.Length(90000);
            });

            Property(x => x.date, map =>
            {
            });

            Property(x => x.siteName, map =>
            {
                map.Length(500);
            });

            Property(x => x.title, map =>
            {
                map.Length(500);
            });

            Property(x => x.url, map =>
            {
                map.Length(500);
            });

            Table("news");
        }
    }
}